package de.derhess.projects.pkr.models
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	
	/**
	 * released under MIT License (X11)
	 * http://www.opensource.org/licenses/mit-license.php
	 * 
	 * Class  OwnLawyerCost
	 * 
	 * @author Florian Weil [derhess.de, Deutschland]
	 * @see http://blog.derhess.de
	 */
	[Bindable]
	public class LawyerCost extends EventDispatcher
	{
		//--------------------------------------------------------------------------
		//
		//  Class variables
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Variables
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Initialization
		//
		//--------------------------------------------------------------------------
		public function LawyerCost()
		{
			instance1 = new LawyerInstanceCost();
			appeal1 = new LawyerInstanceCost();
			appeal2 = new LawyerInstanceCost();
		}
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		public var instance1:LawyerInstanceCost;
		public var appeal1:LawyerInstanceCost;
		public var appeal2:LawyerInstanceCost;
		

		public var vatSum:Number = 0;
		public var sum:Number = 0;
		//--------------------------------------------------------------------------
		//
		//  Additional getters and setters
		//
		//--------------------------------------------------------------------------
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		override public function toString():String 
		{
			return "[LawyerCost] : instance1: " + instance1.toString() + " + appeal1: " + appeal1.toString() + " + appeal2: " + appeal2.toString() + " + vat: " + vatSum + " = sum: " + sum;	
		}
		//--------------------------------------------------------------------------
		//
		//  API
		//
		//--------------------------------------------------------------------------
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Eventhandling
		//
		//--------------------------------------------------------------------------
		
		
		//--------------------------------------------------------------------------
		//
		//  Broadcasting
		//
		//--------------------------------------------------------------------------
		
		
	}
}